﻿@model Trifecta.Models.Agent_Merchant

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <h4>Agent_Merchant</h4>
        <hr />
        @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.AgentMerchant_ID)

        <div class="form-group">
            @Html.LabelFor(model => model.Agent_ID, "Agent_ID", new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.DropDownList("Agent_ID", String.Empty)
                @Html.ValidationMessageFor(model => model.Agent_ID)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Merchant_ID, "Merchant_ID", new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.DropDownList("Merchant_ID", String.Empty)
                @Html.ValidationMessageFor(model => model.Merchant_ID)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Activate_Date, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Activate_Date)
                @Html.ValidationMessageFor(model => model.Activate_Date)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Retired_Date, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Retired_Date)
                @Html.ValidationMessageFor(model => model.Retired_Date)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Memo, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Memo)
                @Html.ValidationMessageFor(model => model.Memo)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Save" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
